package com.hualu.serverInfo.dao.hibernate;

import java.util.List;

import org.tnc.dao.hibernate.GenericDaoHibernate;

import com.hualu.serverInfo.dao.ServerInfoDao;
import com.hualu.serverInfo.model.ServerInfo;

public class ServerInfoDaoHibernate extends GenericDaoHibernate<ServerInfo, Integer> implements ServerInfoDao {

    public ServerInfoDaoHibernate() {
        super(ServerInfo.class);
    }
    
    @SuppressWarnings("unchecked")
    public List<ServerInfo> getServerInfoList(){
        List<ServerInfo> list = getHibernateTemplate().find("from ServerInfo");
        return list;
    }
    
    public ServerInfo getServerInfo(String publicIp){
        ServerInfo serverInfo = new ServerInfo();
        return serverInfo;
    }

}
